
#ifndef PURG_C_INTERFACE_COMPILE
namespace purg
{
#endif


  template <typename VARTYPE , typename GENTYPE>
  random_variable<VARTYPE , GENTYPE>::random_variable ( VARTYPE low , VARTYPE high , GENTYPE &gen )
      : _generator ( gen )
      , _low ( low )
      , _high ( high )
  {
  }


  template <typename VARTYPE , typename GENTYPE>
  random_variable<VARTYPE , GENTYPE>::~random_variable ()
  {
  }

  template <typename VARTYPE , typename GENTYPE>
  random_variable<VARTYPE , GENTYPE>::operator VARTYPE ()
  {
    VARTYPE retVal;
    _generator.get ( retVal , _low , _high );
    return retVal;
  }

#ifndef PURG_C_INTERFACE_COMPILE
}
#endif
